[IA64] Increase hypervisor memory reservation
authorAlex Williamson <alex.williamson@hp.com>
Thu, 20 Mar 2008 20:12:07 +0000 (14:12 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 20 Mar 2008 20:12:07 +0000 (14:12 -0600)
Recent additions to the xen codebase have inflated the memory requirements
of the hypervisor a bit. To compensate, we need to increase the amount of
memory we try to reserve for the hypervisor when allocating "all" system
memory to dom0.

Fixes kernel panics on a 2GB rx2600 in our lab, as well as on misc. test
systems with between 16 and 128GB when they're configured to allocate "all"
memory to dom0.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
xen/arch/ia64/xen/domain.c

index 47c1e372e4623a16b8da9ce2f804a78b673c0ff8..70831508aae87298ba2a7e7eaaa19426d74c6518 100644 (file)
@@ -1943,10 +1943,10 @@ static void __init calc_dom0_size(void)
         * for DMA and PCI mapping from the available domheap pages. The
         * chunk for DMA, PCI, etc., is a guestimate, as xen doesn't seem
         * to have a good idea of what those requirements might be ahead
-        * of time, calculated at 1MB per 4GB of system memory */
+        * of time, calculated at 128MB + 1MB per 4GB of system memory */
        domheap_pages = avail_domheap_pages();
        p2m_pages = domheap_pages / PTRS_PER_PTE;
-       spare_hv_pages = domheap_pages / 4096;
+       spare_hv_pages = 8192 + (domheap_pages / 4096);
        max_dom0_size = (domheap_pages - (p2m_pages + spare_hv_pages))
                         * PAGE_SIZE;
        printk("Maximum permitted dom0 size: %luMB\n",